package io.gitee.zhangbinhub.admin.resource.server.vo

import io.swagger.v3.oas.annotations.media.Schema

/**
 * @author zhangbin by 2018-1-17 15:50
 * @since JDK 11
 */
@Schema(description = "用户信息详情")
data class UserVo(

    @Schema(description = "用户ID")
    var id: String? = null,

    @Schema(description = "用户名称")
    var name: String? = null,

    @Schema(description = "登录号")
    var loginNo: String? = null,

    @Schema(description = "手机号")
    var mobile: String? = null,

    @Schema(description = "用户级别")
    var levels: Int = 0,

    @Schema(description = "是否启用")
    var enabled: Boolean = false,

    @Schema(description = "序号")
    var sort: Int = 0,

    @Schema(description = "所属机构")
    var organizationSet: MutableSet<OrganizationVo> = mutableSetOf(),

    @Schema(description = "可管理的机构")
    var organizationMngSet: MutableSet<OrganizationVo> = mutableSetOf(),

    @Schema(description = "所属角色")
    var roleSet: MutableSet<RoleVo> = mutableSetOf()

)
